//---------------------------------------------------------------------------

#ifndef vTondeuseH
#define vTondeuseH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>

#include "uSKiloutou.h"
#include "CTondeuse.h"
#include "pOperation.h"
#include <assert.h>
//---------------------------------------------------------------------------
#define asMateriel(a)   dmKiloutou->tMateriel##a->AsString
#define nMateriel(a)   dmKiloutou->tMateriel##a->AsInteger

#define nTondeuse(a)    dmKiloutou->tTondeuse##a->AsInteger
#define fTondeuse(a)    dmKiloutou->tTondeuse##a->AsFloat
//---------------------------------------------------------------------------
class CTondeuse;
//---------------------------------------------------------------------------
bool __fastcall GereTondeuse( TOperationSaisie nOpe);
//---------------------------------------------------------------------------
class TvSTondeuse : public TForm
{
  __published:	// Composants gérés par l'EDI
      TGroupBox *GroupBox1;
      TLabel *Label1;
      TLabel *Label2;
      TLabel *Label3;
      TLabel *Label4;
    TBitBtn *bbOK;
    TBitBtn *bbAnnuler;
      TEdit *eNom;
      TEdit *eDescription;
      TEdit *eVitesse;
      TEdit *ePrix;
      void __fastcall bbOKClick(TObject *Sender);
  private:	// Déclarations utilisateur
      TOperationSaisie m_nOpe;
      void __fastcall Enregistrer( void );
      void __fastcall Modifier( void );
      
  public:		// Déclarations utilisateur
      __fastcall TvSTondeuse(TComponent* Owner, TOperationSaisie nOpe);
      void __fastcall Supprimer( void );
};

#endif
